package com.tenglong.teacher.services;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.HeaderMap;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Path;

/**
 * @author hdx on 2019/4/19.
 */
public interface SMSApi {
    /**
     * sms/sendcode.action
     * @param headers
     * @param fields
     * @return
     */
    @FormUrlEncoded
    @POST("{url}")
    Call<String> getVerifyCode(@Path ("url") String url , @HeaderMap Map<String,String> headers, @FieldMap(encoded = true) Map<String, String> fields );
}
